package de.uni.muenster.idw2.location.wifi;

import android.os.Parcel;
import android.os.Parcelable;

public class Result implements Parcelable{
	private final String bssid;
	private final String ssid;
	private final int level;
	
	
	public Result (String b, String s, int l){
		bssid = b;
		ssid = s;
		level = l;
	}


	public String getBssid() {
		return bssid;
	}


	


	public String getSsid() {
		return ssid;
	}


	


	public int getLevel() {
		return level;
	}


	


	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public void writeToParcel(Parcel p, int flags) {
		// TODO Auto-generated method stub
		p.writeString(bssid);
		p.writeString(ssid);
		p.writeInt(level);
	}
	
	public static final Parcelable.Creator<Result> CREATOR = new Parcelable.Creator<Result>(){

		@Override
		public Result createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			String bssid = source.readString();
			String ssid = source.readString();
			int level = source.readInt();
			
			return new Result(bssid, ssid, level);
		}

		@Override
		public Result[] newArray(int size) {
			// TODO Auto-generated method stub
			return new Result[size];
		}
		
	};
	
}
